<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title></title>
    <meta name="viewport" content="initial-scale=1, maximum-scale=1">
    <link rel="shortcut icon" href="/favicon.ico">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <!--	<script src="http://libs.baidu.com/jquery/1.9.0/jquery.js"></script>
        <script type="text/javascript" src="js/angular.min.js" ></script>-->
    <link rel="stylesheet" href="css/activityDetails.css"/>


</head>
<body >

<div class="header">
    <img onclick="javascript: history.go(-1)" src="img/back-ioc.png"/>
    <span>活动详情</span>
</div>
<div style="height: 50px;"></div>
<div class="activity-img-box">
    <img class="active-img" src="{{url+activity.imagePath}}"/>
    <div class="activity-img-conten">
        <div class="activity-title">
            <span>{{activity.headLine}}</span>
            <div class="icon">
                <img ng-if="aid" class="good" src="img/gooded-ioc.png"/>
                <img id="gooded"  ng-if="aid==false" ng-click="collection()" class="good" src="img/good-ioc.png"/>
                <img class="share" src="img/share-ioc.png"/>
            </div>
        </div>

    </div>
</div>

<div class="active-content1">
    <img src="img/near-ico-checked.png"/> &nbsp;<span class="active-content1-span"> 集合地点:<span>{{activity.activityRoute}}</span></span>
</div>

<div class="active-content2">
    <div>
        <img class="active-content2-img1" src="img/start-ioc.png"/> &nbsp;<span
            class="active-content2-span"> 开始时间:<span>{{activity.startTime}}</span></span><br/>

    </div>
    <div>
        <img class="active-content2-img2" src="img/end-ioc.png"/> &nbsp;<span class="active-content2-span"> 结束时间:<span>{{activity.endTime}}</span></span>
    </div>
    <div class="owner">
        <span>发起人</span><br/>
        <img src="img/logo.png"/>
        <span class="username " style="line-height:30px;">骑友平台</span>
    </div>
</div>

<div class="active-content3">
    <div>
        <img class="active-content3-img3" src="img/phone-ioc.png"/> &nbsp;<span
            class="active-content3-span"> 联系电话:<span>{{activity.contact}}</span></span><br/>
        <span class="join-pay">报名费用：<span class="span">10元</span></span>
        <div class="active-content">
            <span></span>
            <p>{{activity.detials}}</p>
        </div>
    </div>
</div>

<div id="join">
    <button ng-click="join()">报名</button>
</div>


<script>
    /*var app = angular.module('myApp',[]);
     app.controller('activityDetailsCtrl', function($scope, $location, $http){
     function getId(){
     var str = location.href;//获取传过来的地址
     var arr = str.split("?");
     var str1 = arr[1];//获取？之后的内容
     var id = str1.split("=")[1];
     return id;
     }
     $http({
     method: 'GET',
     url: 'http://139.199.76.34:8080/yueqi/activities/'+getId()
     }).then(function successCallback(response) {
     $scope.activity= response.data.data;
     console.log(response.data.data);
     }, function errorCallback(response) {
     // 请求失败执行代码
     });



     }); 	*/
</script>
</body>
</html>
